//
//  NSString+mobileEncryption.m
//  hnGovernment
//
//  Created by zhn on 2017/3/11.
//  Copyright © 2017年 安仔. All rights reserved.
//

#import "NSString+mobileEncryption.h"

@implementation NSString (mobileEncryption)
- (NSString *)encryption {
    if (self.length != 11) {return @"****";}
    return [self stringByReplacingCharactersInRange:NSMakeRange(3, 4) withString:@"****"];
}
@end
